package com.infindo.iflower.util;

import java.io.IOException;
import java.lang.reflect.Field;

import android.content.Context;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.util.Log;

import com.infindo.iflower.R;

public class RR {
/*    public static Drawable getDrawabless(Context context, String name) {
    	
        Class c = R.raw.class;
        Drawable d = null;
        Field f;
        int i = 0;

        try {
            f = c.getField(name);
            i = f.getInt(f);
            d = context.getResources().getDrawable(i);
        } catch (Exception e) {
            Log.e("RR",e.toString());
        }
        return  d;
    }


    
    public static String getString(Context context, String name) {
        Class c = R.string.class;
        String s = null;
        Field f;
        int i = 0;

        try {
            f = c.getField(name);
            i = f.getInt(f);
            s = context.getResources().getString(i);
        } catch (Exception e) {
            Log.e("RR",e.toString());
        }
        return s;
    }*/

}